import {user} from './request'
async function add(event) {
  var val = await axios.post('add', { 
      username: 'root',
      password: '123456'
  })
  console.log(val)
}
async function validate(event) {
  var val = await axios.post('validate', { 
        username: 'root',
        password: '123456'
    })
  console.log(val)
}
export function getHomeMultidata() {
  return request({
    url: '/home/multidata'
  })
}

export function getHomeGoods(type,page) {
  return request({
    url:'/home/data',
    params: {
      type,
      page
    }
  })
}